package com.frank.oj.service.admin.system;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.frank.model.entity.msg.AdminSysNotice;
import com.frank.oj.common.exception.StatusFailException;
import com.frank.oj.common.result.CommonResult;
import com.frank.oj.model.vo.AdminSysNoticeVO;

/**
 * @author frank
 * @Date 2024/3/30
 */
public interface AdminNoticeService {
    CommonResult<IPage<AdminSysNoticeVO>> getSysNotice(Integer limit, Integer currentPage, String type);

    void addSysNotice(AdminSysNotice adminSysNotice) throws StatusFailException;

    void deleteSysNotice(Long id) throws StatusFailException;

    void updateSysNotice(AdminSysNotice adminSysNotice) throws StatusFailException;
}
